import Vue from 'vue'
import Router from 'vue-router'
//利用模块化导入分路由
import movieRouter from "./movie"
import cinameRouter from "./cinema"
import mineRouter from "./mine"


Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    movieRouter,
    cinameRouter,
    mineRouter,
    //路由重定向
    {
      path:"/*",
      redirect:"/movie"
    }
  ]
})
